<ResourceDictionary  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Tool.Framework;assembly=Tool.Framework">

    <SolidColorBrush x:Key="BackgroundBrush" Color="#efefef"/>
    <SolidColorBrush x:Key="BorderBrush" Color="#e3e3e5"/>
    <SolidColorBrush x:Key="TextPanelBackgroundBrush" Color="#50444444"/>
    <SolidColorBrush x:Key="ButtonBorderBrush" Color="#0360AB"/>
    <SolidColorBrush x:Key="SpliterBrush" Color="Gray"/>
    <Color x:Key="ThemeColor">#155fb6</Color>
    <Color x:Key="HighlightThemeColor">#057BDC</Color>
    <Color x:Key="LightThemeColor" >#0468B9</Color>
    <SolidColorBrush x:Key="ThemeBrush" Color="{StaticResource ResourceKey=ThemeColor}"/>
    <SolidColorBrush x:Key="HighlightThemeBrush" Color="{StaticResource ResourceKey=HighlightThemeColor}"/>
    <SolidColorBrush x:Key="LightThemeBrush" Color="{StaticResource ResourceKey=LightThemeColor}"/>
    <SolidColorBrush x:Key="DisabledBrush" Color="#C9C9C9"/>
    <LinearGradientBrush x:Key="ThumbBrush" StartPoint="0,0" EndPoint="1,0">
        <GradientStop Color="#d7d8dc" Offset="0"/>
        <GradientStop Color="#d7d8dc" Offset="0.5"/>
        <GradientStop Color="#e7e8ea" Offset="0.500001"/>
        <GradientStop Color="#e7e8ea" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="DraggingThumbBrush" StartPoint="0,0" EndPoint="1,0">
        <GradientStop Color="{StaticResource ResourceKey=LightThemeColor}" Offset="0"/>
        <GradientStop Color="{StaticResource ResourceKey=LightThemeColor}" Offset="0.5"/>
        <GradientStop Color="{StaticResource ResourceKey=HighlightThemeColor}" Offset="0.500001"/>
        <GradientStop Color="{StaticResource ResourceKey=HighlightThemeColor}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ThumbBorder" Color="#7f7f7f"/>
    <LinearGradientBrush x:Key="mouseOverBorderBack" EndPoint="0.5,1" StartPoint="0.5,0">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#FF616262" Offset="0"/>
                <GradientStop Color="#FF1e252a" Offset="0.9888889789581299" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>
    <LinearGradientBrush EndPoint="0,1" x:Key="backBorderBackground" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
        <GradientStop Color="#E6E6E6" Offset="0"/>
        <GradientStop Color="#F5F5F5" Offset="0.5"/>
        <GradientStop Color="#E6E6E6" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush EndPoint="0.5,1" x:Key="ImageButtonPressedBrush"  StartPoint="0.5,0">
        <GradientStop Color="Transparent"/>
        <GradientStop Color="Transparent" Offset="0.5"/>
        <GradientStop Color="{StaticResource ResourceKey=ThemeColor}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush EndPoint="0.5,1" x:Key="TitlePanelBrush"  StartPoint="0.5,0">
        <GradientStop Color="{StaticResource ResourceKey=ThemeColor}" Offset="0.2"/>
        <GradientStop Color="{StaticResource ResourceKey=ThemeColor}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TabItemSelectedBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#1b4872" Offset="0"/>
        <GradientStop Color="#1e3956" Offset="0.4999999"/>
        <GradientStop Color="#042340" Offset="0.5"/>
        <GradientStop Color="#091a2e" Offset="1"/>
    </LinearGradientBrush>

    <Style TargetType="{x:Type local:TitlePanel}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TitlePanel}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Content="{TemplateBinding Title}" HorizontalAlignment="Stretch" HorizontalContentAlignment="{TemplateBinding TitleAlignment}" VerticalAlignment="Center" Background="{StaticResource ResourceKey=TitlePanelBrush}" FontSize="14" Foreground="White"/>
                        <ContentPresenter Grid.Row="1" Margin="5"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Paragraph}">
        <Setter Property="Margin" Value="0"/>
    </Style>

    <Style TargetType="{x:Type local:TextPanel}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TextPanel}">
                    <Border CornerRadius="5" Background="{StaticResource ResourceKey=TextPanelBackgroundBrush}" SnapsToDevicePixels="True">
                        <ContentPresenter Margin="5,0,5,0"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:WatermarkAdorner}">
        <Setter Property="FontSize" Value="20"/>
    </Style>

    <Style TargetType="{x:Type local:ImageButton}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:ImageButton}">
                    <Border x:Name="_border" BorderThickness="1,1,1,1" CornerRadius="3" SnapsToDevicePixels="True">
                        <ContentPresenter x:Name="_content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="_border" Property="BorderBrush" Value="{StaticResource ResourceKey=ButtonBorderBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="{StaticResource ResourceKey=ImageButtonPressedBrush}"/>
                            <Setter TargetName="_content" Property="Margin" Value="3,3,0,0"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
    <Style TargetType="{x:Type local:TitleControl}">
        <Setter Property="Foreground" Value="#303133"/>
        <Setter Property="CornerRadius" Value="0,0,0,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TitleControl}">
                    <Border CornerRadius="{TemplateBinding CornerRadius}" Background="White" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" SnapsToDevicePixels="True">
                        <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:CorneredTextBox}">
        <Setter Property="CornerRadius" Value="5"/>
        <Setter Property="Padding" Value="0,2,0,2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:CorneredTextBox}">
                    <Border CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ResourceKey=DisabledBrush}" BorderThickness="1" SnapsToDevicePixels="True">
                        <ScrollViewer x:Name="PART_ContentHost" Padding="{TemplateBinding Padding}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:TextBoxRecorder}">
        <Setter Property="CornerRadius" Value="5"/>
        <Setter Property="Padding" Value="0,2,0,2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TextBoxRecorder}">
                    <Border CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ResourceKey=DisabledBrush}" BorderThickness="1" SnapsToDevicePixels="True">
                        <ScrollViewer x:Name="PART_ContentHost" Padding="{TemplateBinding Padding}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:RichTextBoxRecorder}">
        <Setter Property="CornerRadius" Value="5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:RichTextBoxRecorder}">
                    <Border CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ResourceKey=DisabledBrush}" BorderThickness="1" SnapsToDevicePixels="True">
                        <ScrollViewer x:Name="PART_ContentHost"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:InputBox}" x:Key="txt">
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:InputBox}">
                    <Border CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ResourceKey=DisabledBrush}" BorderThickness="1" SnapsToDevicePixels="True">
                        <ScrollViewer x:Name="PART_ContentHost"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <SolidColorBrush x:Key="TextBoxBorder" Color="#D8DCE6"/>

    <Style x:Key="ToolInputBoxStyle" TargetType="{x:Type local:InputBox}">
        <Setter Property="Foreground" Value="#606266"/>
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="Height" Value="30" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:InputBox}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}"
                                                  BorderThickness="{TemplateBinding BorderThickness}"
                                                  Background="{TemplateBinding Background}" 
                                                  SnapsToDevicePixels="true"
                                                  CornerRadius="3">
                        <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="BorderBrush" TargetName="Bd" Value="#409EFF"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="true">
                            <Setter Property="BorderBrush" TargetName="Bd" Value="#409EFF"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="ADListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Foreground" Value="{StaticResource ResourceKey=SpliterBrush}"/>
        <Setter Property="Margin" Value="10" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Border x:Name="_border" CornerRadius="2" VerticalAlignment="Center" SnapsToDevicePixels="True">
                        <ContentPresenter VerticalAlignment="Center" Margin="0,2,0,2"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Cursor" Value="Hand"/>
                            <!--<Setter TargetName="_border" Property="Background" Value="{StaticResource ResourceKey=HighlightThemeBrush}"/>
                            <Setter Property="Foreground" Value="White"/>-->
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ADListBoxStyle" TargetType="{x:Type ListBox}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource ResourceKey=ADListBoxItemStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Border VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
                        <ScrollViewer x:Name="_scroll" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled" CanContentScroll="False" FocusVisualStyle="{x:Null}">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" IsItemsHost="True" VerticalAlignment="Stretch"/>
                        </ScrollViewer>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Border MinWidth="120" Background="White" BorderBrush="{StaticResource ResourceKey=DisabledBrush}" BorderThickness="0" CornerRadius="2" SnapsToDevicePixels="True">
                            <Image Source="{Binding Image}" Margin="10" Stretch="Uniform" />
                        </Border>
                        <TextBlock Grid.Row="1" Text="{Binding Name}" TextAlignment="Center" Margin="0,8,0,0" FontSize="14" Foreground="#303133" VerticalAlignment="Center"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Geometry x:Key="LeftArrowGeometry">M 5 0 L 0 5 L 5 10</Geometry>
    <Style x:Key="ADLeftButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Foreground" Value="{StaticResource ResourceKey=SpliterBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="_border" VerticalAlignment="Stretch" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" SnapsToDevicePixels="True" Background="#01FFFFFF">

                        <Path x:Name="Arrow" Data="{StaticResource LeftArrowGeometry}" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Margin="5,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center"  SnapsToDevicePixels="True"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="#E1E1E1"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="#E1E1E1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="Gray"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Geometry x:Key="RightArrowGeometry">M 0 0 L 5 5 L 0 10</Geometry>
    <Style x:Key="ADRightButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Foreground" Value="{StaticResource ResourceKey=SpliterBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="_border" VerticalAlignment="Stretch" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" SnapsToDevicePixels="True" Background="#01FFFFFF">

                        <Path x:Name="Arrow" Data="{StaticResource RightArrowGeometry}" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Margin="5,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center"  SnapsToDevicePixels="True"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="#E1E1E1"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="#E1E1E1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="Gray"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <LinearGradientBrush x:Key="VerticalScrollBarBackground" EndPoint="1,0" StartPoint="0,0">
        <GradientStop Color="#E1E1E1" Offset="0"/>
        <GradientStop Color="#EDEDED" Offset="0.20"/>
        <GradientStop Color="#EDEDED" Offset="0.80"/>
        <GradientStop Color="#E3E3E3" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ScrollBarDisabledBackground" Color="#F4F4F4"/>
    <Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Foreground" Value="{StaticResource ResourceKey=DisabledBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Border x:Name="Chrome" Background="{StaticResource ResourceKey=BackgroundBrush}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ResourceKey=DisabledBrush}">
                        <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Chrome" Property="BorderBrush" Value="{StaticResource ResourceKey=HighlightThemeBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Chrome" Property="BorderBrush" Value="{StaticResource ResourceKey=HighlightThemeBrush}"/>
                            <Setter TargetName="Chrome" Property="Background" Value="{StaticResource ResourceKey=HighlightThemeBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="HorizontalScrollBarBackground" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#E1E1E1" Offset="0"/>
        <GradientStop Color="#EDEDED" Offset="0.20"/>
        <GradientStop Color="#EDEDED" Offset="0.80"/>
        <GradientStop Color="#E3E3E3" Offset="1"/>
    </LinearGradientBrush>
    <Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}">
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Width" Value="200"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <Border x:Name="_border" Background="{StaticResource ResourceKey=BackgroundBrush}" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" SnapsToDevicePixels="True">
                        <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="_border" Property="Background" Value="{StaticResource ResourceKey=ThemeBrush}"/>
                            <Setter Property="Foreground" Value="White"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="TabRadioButtonStyle" TargetType="{x:Type RadioButton}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <!--<Setter Property="Height" Value="50" />-->
        <Setter Property="Padding" Value="0"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <Border x:Name="_border" Width="170" BorderThickness="0,0,0,2" Background="#01FFFFFF" BorderBrush="Transparent" Margin="0,0,4,0" SnapsToDevicePixels="True">
                        <ContentControl x:Name="_content" Content="{TemplateBinding Content}" FontSize="16" Margin="0,0,0,12" Foreground="#303133" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="_border" Property="BorderBrush" Value="#3296FA"/>
                            <Setter TargetName="_content" Property="Foreground" Value="#3296FA"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="_content" Property="Foreground" Value="#3296FA"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TabButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FontSize" Value="16" />
        <Setter Property="Foreground" Value="#303133" />
        <!--<Setter Property="Height" Value="50" />-->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="_border" Width="170" Margin="0,0,0,0" SnapsToDevicePixels="True" Background="#01FFFFFF">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,0,0,12" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="_border" Property="BorderBrush" Value="#3296FA"/>
                            <Setter Property="Foreground" Value="#3296FA"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Foreground" Value="#3296FA"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--<Style x:Key="TabButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#409EFF"/>
        <Setter Property="BorderBrush" Value="#DCDFE6"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="#FFFFFF"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="5,1,5,1"/>
        <Setter Property="MinWidth" Value="170"/>
        <Setter Property="MinHeight" Value="30"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" 
                                SnapsToDevicePixels="true" CornerRadius="3">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#55A1FD"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Button.IsPressed" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#2A79DF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#409EFF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                            <Setter Property="Opacity" Value="0.5" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->

</ResourceDictionary>
